// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from "@/utils/request.js";

/**
 * 获取用户信息
 * 
 */
export function GetNewComerQuestionInfo(data) {	
	return request.get('wx/NewComerIndex/GetNewComerQuestionInfo?PromotionUsersId='+data.PromotionUsersId,{},{noAuth: true});
	// return request.get(`wx/NewComerIndex/GetNewComerQuestionInfo?PromotionUsersId=${data.PromotionUsersId}`,{noAuth: true});
}

export function GetLifeHomeInfo(data) {	
	return request.post(`wx/Home/GetLifeHomeInfoAsync?openid=${data.openid}&PromotionUserType=${data.PromotionUserType}`,{},{noAuth: true});
	// return request.get(`wx/NewComerIndex/GetNewComerQuestionInfo?PromotionUsersId=${data.PromotionUsersId}`,{noAuth: true});
}
export function SubmitAnswer(data) {	
	return request.get(`wx/NewComerIndex/SubmitAnswer?PromotionsId=1&openid=1&QuestionId=${data.QuestionId}&PromotionsNewComerAnswerId=${data.AnswerId}`,{},{noAuth: true});
	// return request.get(`wx/NewComerIndex/GetNewComerQuestionInfo?PromotionUsersId=${data.PromotionUsersId}`,{noAuth: true});
}
export function GetLuckyDrawListInfo(data) {	
	return request.post(`wx/Home/GetLuckyDrawListInfo?PromotionGroupId=${data.PromotionGroupId}`,{},{noAuth: true});
}
export function mapbbanner(data) {	
	return request.post('mapbbanner',data,{noAuth: true});
}
export function GetPromotionUserCouponBag(data) {	
	return request.post(`wx/Home/GetPromotionUserCouponBag?PromotionsId=${data.PromotionsId}`,{},{noAuth: true});
}
export function LuckyDrawEvent(data) {	
	return request.post(`wx/Home/LuckyDrawEvent?PromotionId=${data.PromotionsId}&OpenId=${data.OpenId}`,{},{noAuth: true});
}
